package com.dcy.znoa.controller.sys.model.role;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UpdateRoleModel {
    //只能修改名称
	
    @NotNull
    Long roleId;
    @Size(min=1,max=50,message="角色名称长度只能在1-50之间")
    String roleName;
    @Size(max=50,message="角色描述长度不能大于50")
	String describe;
	 
    Long updateOperId;

    Date updateTime = new Date();

    Integer validFlag;  //启用、禁用
}
